<template>
  <!-- 弹窗 -->
  <el-dialog
    :model-value="dialogDetails"
    width="400"
    title="活动详情"
    :before-close="handleClose"
  >
    <el-divider />
    <el-descriptions :column="1">
      <el-descriptions-item label="用户昵称：">
        {{ props.activityrow.nickName }}
      </el-descriptions-item>
      <el-descriptions-item label="手机号码：">
        {{ props.activityrow.mobile }}
      </el-descriptions-item>
      <el-descriptions-item label="成员身份：">
        {{ props.activityrow.roleStr }}
      </el-descriptions-item>
      <el-descriptions-item label="票种状态：">
        {{ props.activityrow.ticketStatus }}
      </el-descriptions-item>
    </el-descriptions>
    <el-descriptions :column="1" title="报名信息" style="margin-top: 20px">
      <el-descriptions-item label="我的标签："></el-descriptions-item>
      <el-descriptions-item label="微信："></el-descriptions-item>
      <el-descriptions-item label="联系方式："></el-descriptions-item>
      <el-descriptions-item label="所在地市："></el-descriptions-item>
      <el-descriptions-item label="自定义栏："></el-descriptions-item>
    </el-descriptions>
    <template #footer>
      <div class="dialog-footer">
        <span>
          <el-icon>
            <ArrowLeftBold />
          </el-icon>
          <span>上一个</span>
        </span>
        <span>
          <span>下一个</span>

          <el-icon>
            <ArrowRightBold />
          </el-icon>
        </span>
      </div>
    </template>
  </el-dialog>
</template>

<script setup>
import { ref, onUpdated } from 'vue';
const props = defineProps({
  dialogDetails: {
    type: Boolean,
  },
  activityrow: {
    type: Object,
  },
});

const emit = defineEmits(['cancel']);

// 关闭对话框
const handleClose = () => {
  emit('cancel');
};
onUpdated(() => {});
</script>
<style lang="scss" scoped>
.dialog-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;

  > span {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #606266;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;

    &:hover {
      color: #409eff;
      background-color: #ecf5ff;
    }

    .el-icon {
      margin: 0;
    }
  }
}

:deep(.el-descriptions__label) {
  color: #9f9fa1;
}

:deep(.el-dialog__body) {
  padding-top: 10px;
  padding-bottom: 10px;
}

.el-divider--horizontal {
  margin-bottom: 20px;
  margin-top: 5px;
}

:deep(.el-dialog__header) {
  padding-bottom: 10px;
  margin-right: 0;
}
</style>
